package com.hzy.admin.models.vo.system;

import com.hzy.admin.repository.entity.system.SysUser;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * 账户信息 对象
 */
@Data
public class UserInfoVo {
    public UserInfoVo(String name, List<String> roleIds, String userId, boolean isAdministrator, SysUser sysUser) {
        this.name = name;
        this.roles = roleIds;
        this.userId = userId;
        this.isAdministrator = isAdministrator;
        this.sysUser = sysUser;
    }

    /**
     * 用户名称
     */
    private String name;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 角色 集合
     */
    private List<String> roles;

    /**
     * 用户 Id
     */
    private String userId;

    /**
     * 是否超级管理员
     */
    private boolean isAdministrator;

    /**
     * 用户信息
     */
    private SysUser sysUser;

    /**
     * 菜单集合
     */
    private List<Map<String, Object>> menus;

}
